#include<bits/stdc++.h>

using namespace std;
typedef long long ll;


int main() {
    int a[5] = {1, 2, 3, 4, 5};
    int k = 10;
    int b[5] = {0};
    for (b[0] = 0; b[0] <= 1; ++b[0])
        for (b[1] = 0; b[1] <= 1; ++b[1])
            for (b[2] = 0; b[2] <= 1; ++b[2])
                for (b[3] = 0; b[3] <= 1; ++b[3])
                    for (b[4] = 0; b[4] <= 1; ++b[4]) {
                        int tot = 0;
                        for (int i = 0; i < 5; i++) {
                            if (b[i] == 1) {
                                tot += a[i];
                            }
                        }
                        if (tot == k) {
                            cout << b[0] << b[1] << b[2] << b[3] << b[4] << endl;
                        }
                    }
    return 0;
}